﻿namespace Hotel.Web.Models
{
    using System.ComponentModel.DataAnnotations;

    public class ContactInfo
    {
        [Required(ErrorMessageResourceType = typeof(Hotel.Web.Views.Shared.Validation), ErrorMessageResourceName = "RequiredErrorMessage")]
        [StringLength(50, MinimumLength = 2, ErrorMessageResourceType = typeof(Hotel.Web.Views.Shared.Validation), ErrorMessageResourceName = "NameErrorMessage")]
        [Display(ResourceType = typeof(Hotel.Web.Views.OrderRoom.RoomOrder), Name = "FirstName")]
        public string FName { get; set; }

        [Required(ErrorMessageResourceType = typeof(Hotel.Web.Views.Shared.Validation), ErrorMessageResourceName = "RequiredErrorMessage")]
        [StringLength(50, MinimumLength = 2, ErrorMessageResourceType = typeof(Hotel.Web.Views.Shared.Validation), ErrorMessageResourceName = "NameErrorMessage")]
        [Display(ResourceType = typeof(Hotel.Web.Views.OrderRoom.RoomOrder), Name = "LastName")]
        public string LName { get; set; }

        public Contacts Contacts { get; set; }
    }
}